package com.xiangban.feign;

import com.xiangban.feign.fallBack.DoctorFallback;
import com.xiangban.feign.fallBack.MessageFallback;
import com.xiangban.model.SmsParameterDto;
import com.xiangban.model.res.ApiResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author Mr. MaYaYun
 * @Data 2022/1/21 11:07
 */
@Component
@FeignClient(value = "${system.message}",fallbackFactory = MessageFallback.class)
public interface MessageFeign {

    @RequestMapping("/send/sendSms")
    @ApiOperation("短信发送")
    ApiResult<Object> sendSms(SmsParameterDto smsParameterDto);
}
